import request from "../request";

// 企业注册
export const qiyeRegister = (data) => request({url:"/account/companyRegister",data,method:'post'});

// 求职者注册
export const qiuzhiRegister = (data) => request({url:"/account/seekerRegister",data,method:'post'})

// 用户登录
export const login = (data) => request({url:"/account/login",data,method:'post'})

// 发送验证码
export const sendCodeFunc = (data) => request({url:"/msm/send",data,method:'post',dataType:"formData",sign:true})

// 获取openId
export const getOpenId = (data) => request({url:"/wechat/miniLogin",data,method:'post'})

//新增访问记录
export const accessLogs = () => request({url:"/access/logs/save"})
// 游客登录企业-仅获取token
export const ykseekerlogin = (data) => request({url:"/web/getSeekerToken",data,method:'get'})
export const ykqiyelogin = (data) => request({url:"/web/getCompanyToken",data,method:'get'})